import Vue from 'vue'
import Router from 'vue-router'
import layer from 'vue-layer'
import ArticleList from '@/pages/ArticleList'
import Article from '@/pages/Article'
import Myself from '@/pages/Myself'
import Question from '@/pages/Question'
import QuestionStep1 from '@/pages/QuestionStep1'
import QuestionStep2 from '@/pages/QuestionStep2'
import QuestionStep3 from '@/pages/QuestionStep3'
import QuestionStep4 from '@/pages/QuestionStep4'
import Comment from '@/pages/Comment'
import Solicit from '@/pages/Solicit'
import SolicitPush from '@/pages/SolicitPush'
import SolicitPush2 from '@/pages/SolicitPush2'
import SolicitPush3 from '@/pages/SolicitPush3'
import SolicitPush4 from '@/pages/SolicitPush4'
// import Ea from '@/pages/Ea'


Vue.use(Router)

export default new Router({
  // mode:'history',
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    //文章列表
    {
      path: '/',
      name: 'ArticleList',
      component: ArticleList,
    //   children:[
    //     {
    //       path: 'article',
    //
    //       component: Article
    //     },
    //     {
    //       path: 'ea',
    //
    //       component: Ea
    //     }
    //   ]
    },
    {
      path: '/article',
      name: 'Article',
      component: Article,
    }
    ,

    //留言
    {
      path: '/comment',
      name: 'Comment',
      component: Comment,
    },
    //征稿
    {
      path: '/solicit',
      name: 'Solicit',
      component: Solicit,
    }, //征稿
    {
      path: '/solicitPush',
      name: 'SolicitPush',
      component: SolicitPush,
    }, //征稿
    {
      path: '/solicitPush2',
      name: 'SolicitPush2',
      component: SolicitPush2,
    }, //征稿
    {
      path: '/solicitPush3',
      name: 'SolicitPush3',
      component: SolicitPush3,
    }, //征稿
    {
      path: '/solicitPush4',
      name: 'SolicitPush4',
      component: SolicitPush4,
    },
    //个人中心
    {
      path: '/myself',
      name: 'Myself',
      component: Myself,
    } ,
    //问答
    {
      path: '/question',
      name: 'Question',
      component: Question,
    } ,
    //问答
    {
      path: '/questionStep1',
      name: 'QuestionStep1',
      component: QuestionStep1,
    },
    //问答
    {
      path: '/questionStep2',
      name: 'QuestionStep2',
      component: QuestionStep2,
    },
    //问答
    {
      path: '/questionStep3',
      name: 'QuestionStep3',
      component: QuestionStep3,
    },
    //问答
    {
      path: '/questionStep4',
      name: 'QuestionStep4',
      component: QuestionStep4,
    }

  ]
})
